<#include "../template/template_editPage.ftl">
<@edit title="下游用户信息管理">
<body class="input">

<script type="text/javascript">
    $().ready(function () {
        var $tab = $("#tab");

        // Tab效果
        $tab.tabs(".tabContent", {
            tabs:"input"
        });
        $('#submitId').click(function () {
        	var checkResult = $('input:radio[name="deposit.checkResult"]:checked').val() ;
        	if(checkResult == null){
        		alert('请选择审核结果') ;
        		return ;
        	}
        	$.post(
        		'${base}/ekhui/deposit!check.htm',		
        		$('#inputForm').serialize(),
        		function(data){
        			if(data == 'true'){
        				alert('审核成功');
        			}else{
        				alert('审核失败');
        			}
        			window.location.href = "${base}/ekhui/deposit!list.htm" ;
        		}
        	);
        });


    });

</script>

<div class="body">
<div class="inputBar">
    <h1><span class="icon">&nbsp;</span><#if isAdd??>添加下游用户信息<#else>编辑下游用户信息</#if></h1>
</div>
<div style="display: none;" id="validateErrorContainer" class="validateErrorContainer">
    <div class="validateErrorTitle">以下信息填写有误,请重新填写</div>
    <ul></ul>
</div>
<form id="inputForm" class="validate">
    <input type="hidden" name="deposit.depositId" value="${deposit.depositId!''}">
    <ul class="tab">
        <li>
            <input type="button" value="基本信息" hidefocus="true"/>
        </li>
    </ul>
    <table class="inputTable tabContent">

             <tr>
                <th>
                    存款金额：
                </th>
                <td>
                     ${deposit.money/1000!''}元
                </td>
            </tr>      

       <tr>
                <th>
                    存款时间：
                </th>
                <td>
                    <#if deposit.createTime?exists>
						${deposit.createTime?string("yyyy-MM-dd HH:mm:ss")}
					</#if>
                </td>
            </tr>      
            
            
        <tr>
                <th>
                    审核状态：
                </th>
                <td>
                    <#if deposit.checkResult?exists>
		   		<#if deposit.checkResult == '1'>
		   			未审核
		   		</#if>
		   		<#if deposit.checkResult == '2'>
		   			审核通过
		   		</#if>
		   		<#if deposit.checkResult == '3'>
		   			审核不通过
		   		</#if>
		   	</#if>
                </td>
            </tr>        
            
            
              <tr>
                <th>
                    银行流水：
                </th>
                <td>
                    ${deposit.bankFlow!''}
                </td>
            </tr>        
            
            
            <tr>
                <th>
                   存入银行卡号：
                </th>
                <td>
                    ${deposit.bankCardNo!''}
                </td>
            </tr>      
            
                        <tr>
                <th>
                   审核：
                </th>
                <td>
                    <input type="radio" name="deposit.checkResult" value="2"/>通过
				  	<input type="radio" name="deposit.checkResult" value="3"/>不通过
				  	<label class="requireField">*</label>
                </td>
            </tr>   
            
  
        <tr>
            <th>
                备注：
            </th>
            <td>
                <textarea name="deposit.checkRemark" class="formTextarea"></textarea>
            </td>
        </tr>
    </table>
    <div class="buttonArea">
    
        <input type="button" id="submitId" class="formButton" 
               value="审    核"/>&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="button" class="formButton" onclick="window.history.back(); return false;" value="返  回"
               hidefocus="true"/>
    </div>
</form>
</div>
</body>
</@edit>
